import time
import unittest
from selenium import webdriver
from data011.Page.Page1 import Page1
from data011.Page.Page2 import Page2
from ddt import ddt,file_data
@ddt
class MyTestCase(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Edge()
        self.driver.maximize_window()
    def tearDown(self):
        time.sleep(2)
        self.driver.quit()
    @file_data('aa.yaml')
    def test_001(self,usm,paw):
        po1 = Page1(self.driver)
        po1.test_jiouxian_01(usm,paw)

    def test_002(self):
        po2 = Page2(self.driver)
        po2.test_jiouxian_02()
        aa = self.driver

if __name__ == '__main__':
    unittest.main()
